package com.ll.domain.classbase.event.producer;

import com.ll.domain.classbase.dto.CourseDTO;
import com.ll.domain.pk.dto.PkDTO;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;

@Slf4j
@Getter
public class AddCourserEvent extends ApplicationEvent {

    private CourseDTO courseDTO;

    public AddCourserEvent(CourseDTO courseDTO) {
        super(courseDTO);
        this.courseDTO = courseDTO;
        log.info("AddCourserEvent success! id: {}", courseDTO.getId());
    }

}
